<template>
<div class="wrapper">
  <swiper :options="swiperOption" ref="mySwiper">
    <!-- slides -->
    <swiper-slide><img class="swiper-img" src="http://img1.qunarzz.com/piao/fusion/1804/c4/1cdd28811593b802.jpg_750x200_5fbb7c91.jpg"/></swiper-slide>
    <swiper-slide><img class="swiper-img" src="http://img1.qunarzz.com/piao/fusion/1805/68/30167ce000808f02.jpg_750x200_bae8f79d.jpg"/></swiper-slide>
    <swiper-slide><img class="swiper-img" src="http://img1.qunarzz.com/piao/fusion/1804/8c/9a3ebf07a1570702.jpg_750x200_7677d24a.jpg"/></swiper-slide>
    <swiper-slide><img class="swiper-img" src="http://img1.qunarzz.com/piao/fusion/1804/3e/4d6e12949f74fc02.jpg_750x200_22aba1bb.jpg"/></swiper-slide>
    <div class="swiper-pagination" slot="pagination"></div>
  </swiper>
</div>
</template>
<script>
export default {
  name: 'HomeSwiper',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        autoplay: 2000,
        loop: true
      }
    }
  }
}
</script>
<style lang="stylus" scoped>
.wrapper >>> .swiper-pagination-bullet-active
  background: #fff !important
.wrapper
  overflow: hidden
  width: 100%
  height: 0
  padding-bottom: 26.66%
  background: #eee
  .swiper-img
    width: 100%
</style>
